package com.yimin.controller;


import com.yimin.servicesapi.dataMasterApi.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("open")
public class TestController {


    @DubboReference( version = "1.0.0",url="dubbo://127.0.0.1:7788/com.yimin.servicesapi.dataMasterApi.DemoService",group = "order-master")
    DemoService demoService;


    @GetMapping("/test1111")
    @ResponseBody
    public String testApi1() {
        return demoService.sayHello("测试dubbo1.0 版本");
    }


}
